package com.company.作业;
import java.util.Scanner;

    public class Main {

        public static void main(String[] args) {
            // write your code here;
            System.out.println("请输入number1:"+"\n"+"请输入number2:");
            Scanner in=new Scanner(System.in);
            double number1=in.nextDouble();
            double number2=in.nextDouble();
            System.out.println("微型计算机"+"\n"+"1.求和"+"\n"+"2.求差"+"\n"+"3.求积"+"\n"+"4.求商"+"\n"+"5.求余"+"\n"+"6.退出");
            System.out.println("请选择你想执行的操作:");
            Scanner sc=new Scanner(System.in);
           long 操作=sc.nextLong();
            if(操作==1){
                System.out.println("和="+(number1+number2));
            }
            else if(操作==2){
                System.out.println("差="+(number1-number2));
            }
            else if(操作==3){
                System.out.println("积="+(number1*number2));
            }
            else if(操作==4){
               System.out.println("商="+(number1/number2));
            }
            else if(操作==5){
                System.out.println("余="+(number1%number2));
            }
            else if(操作==6){
                System.out.println("退出");
            }
            else{
                System.out.println("程序结束！");
            }



        }
    }




